<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>旺财</title>
		<link rel="icon" type="image/x-icon" href="favicon.ico">
	</head>
	<body>
		<div>
			<input type="number" min="3" max="5"/>
		</div>
		
		<script type="text/javascript">
			var mac = '11-22-33-44-55-66';
//			var mac = '11-22-33-44-55-66,AA-AA-AA-AA-AA-AA';
//			var reg = /^[A-F0-9]{2}(-[A-F0-9]{2}){5}$/;
			var reg = /^[A-F0-9]{2}(-[A-F0-9]{2}){5}(,[A-F0-9]{2}(-[A-F0-9]{2}){5})?$/;
			console.log(reg.test(mac));
		</script>
	</body>
</html>
